<?php

use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

$this->title = $name;
?>
<style type="text/css">
    .center-block {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
</style>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 col-md-2"></div>
        <div class="col-xs-12 col-md-1">
            <p style="font-size:32vw;">!</p>
        </div>
        <div class="col-xs-12 col-md-7">

            <div class="center-block" style="margin-top:30%;">

                <h1><?= Html::encode($this->title) ?></h1>

                <?php if ($message): ?>
                    <div class="alert alert-danger">
                        <?= nl2br(Html::encode($message)) ?>
                    </div>
                <?php endif; ?>

                <p>
                    The above error occurred while the Web server was processing your request.
                </p>

                <p>
                    Please contact us if you think this is a server error. Thank you.
                </p>

                <p class="text-right">
                    <a href="<?= Url::home() ?>" class="btn btn-info">Home</a>
                    <a href="javascript:window.history.back();" class="btn btn-success">Back</a>

                </p>

            </div>
        </div>
        <div class="col-xs-12 col-md-2"></div>
    </div>
</div>
